package org.example.partnerbacked.service;

import org.example.partnerbacked.model.Team;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.partnerbacked.model.User;

/**
* @author 70556
* @description 针对表【team(队伍)】的数据库操作Service
* @createDate 2024-12-02 22:09:49
*/
public interface TeamService extends IService<Team> {
    /**
     * 添加队伍
     * @param team
     * @param user
     * @return
     */
    long addTeam(Team team, User user);

    /**
     * 退出 队伍
     * @param teamId
     * @return
     */
    boolean deleteTeam(Long teamId, User user);

    /**
     * 加人队伍
     * @param teamId
     * @param user
     * @return
     */
    boolean joinTeam(String verified,Long teamId, User user);

    /**
     * 退出 队伍
     * @param teamId
     * @param user
     * @return
     */
    boolean quitTeam(Long teamId, User user);

    /**
     * 更新队伍
     * @param team
     * @return
     */
    boolean updated(Team team,User user);
}
